import { t } from "@src/locales";

// task
const TABLENAME = [
  {
    displayName: t('common.label.taskNo'),
    fieldName: 'taskNo',
  },
  {
    displayName: t('common.label.taskTemplate'),
    fieldName: 'templateName',
  },
  {
    displayName: t('common.base.customer'),
    fieldName: 'customerName',
  },
  {
    displayName: t('product.detail.catalogView.type.linkman'),
    fieldName: 'linkName',
  },
  {
    displayName: t('common.base.product'),
    fieldName: 'productName',
  },
  {
    displayName: t('common.label.principalName'),
    fieldName: 'executorUserName',
  },
  {
    displayName: t('common.form.type.planTime'),
    fieldName: 'planDateTime',
  },
  {
    displayName: t('common.task.flow.finishTime'),
    fieldName: 'completeDateTime',
  },
  {
    displayName: t('report.common.userHour'),
    fieldName: 'userHour',
  },
];
// product
const PRODUCT = [
  {
    displayName: t('common.base.column.productType'),
    fieldName: 'productType',
  },
  {
    displayName: t('common.label.taskNo'),
    fieldName: 'taskNo',
  },
  {
    displayName: t('common.label.taskTemplate'),
    fieldName: 'templateName',
  },
  {
    displayName: t('common.base.customer'),
    fieldName: 'customerName',
  },
  {
    displayName: t('product.detail.catalogView.type.linkman'),
    fieldName: 'linkName',
  },
  {
    displayName: t('common.base.product'),
    fieldName: 'productName',
  },
  {
    displayName: t('common.label.principalName'),
    fieldName: 'executorUserName',
  },
  {
    displayName: t('common.form.type.planTime'),
    fieldName: 'planDateTime',
  },
  {
    displayName: t('common.label.taskStatus'),
    fieldName: 'state',
  },
];
// customer
const CUSTOMER = [{
  displayName: t('common.base.customer'),
  fieldName: 'customerName',
}, {
  displayName: t('common.label.customerSerialNumber'),
  fieldName: 'customerNo'
}, {
  displayName: t('product.detail.catalogView.type.linkman'),
  fieldName: 'lmName'
}, {
  displayName: t('common.base.phone'),
  fieldName: 'lmPhone'
}, {
  displayName: t('common.base.locationMap.area'),
  fieldName: 'area'
}, {
  displayName: t('common.base.locationMap.detail'),
  fieldName: 'addressDetail'
}]
// 自定义
const CUSTOMIZE = [
  {
    displayName: t('report.common.horizontal'),
    fieldName: 'horizontal',
  },
  {
    displayName: t('common.label.taskNo'),
    fieldName: 'taskNo',
  },
  {
    displayName: t('common.label.taskTemplate'),
    fieldName: 'templateName',
  },
  {
    displayName: t('common.label.principalName'),
    fieldName: 'executorUserName',
  },
  {
    displayName: t('common.label.taskStatus'),
    fieldName: 'state',
  },
  {
    displayName: t('common.base.createUser'),
    fieldName: 'createUserName',
  },
  {
    displayName: t('common.base.createTime'),
    fieldName: 'createDateTime',
  },
];

// 自定义customer
const CUSTOMERCUSTOMIZE = [
  {
    displayName: t('report.common.horizontal'),
    fieldName: 'horizontal',
  }, {
    displayName: t('common.base.customer'),
    fieldName: 'customerName',
  }, {
    displayName: t('common.label.customerSerialNumber'),
    fieldName: 'customerNo'
  }, {
    displayName: t('product.detail.catalogView.type.linkman'),
    fieldName: 'lmName'
  }, {
    displayName: t('common.base.phone'),
    fieldName: 'lmPhone'
  }, {
    displayName: t('common.base.locationMap.area'),
    fieldName: 'province'
  }, {
    displayName: t('common.label.customerManager'),
    fieldName: 'customerManagerName'
  }]

// 自定义应用 paas
const CUSTOM_FORM_PAAS = [
  {
    displayName: t('report.common.horizontal'),
    fieldName: 'horizontal',
  },
  {
    displayName: t('report.common.formTemplateName'),
    fieldName: 'formTemplateName',
  }, 
  {
    displayName: t('common.base.serialNumber'),
    fieldName: 'formNo'
  }, {
    displayName: t('common.base.status'),
    fieldName: 'customStatus'
  }, 
  {
    displayName: t('report.customReportAggregate.userDepartment'),
    fieldName: 'tagList',
  }, {
    displayName: t('common.base.createUser'),
    fieldName: 'createUserName',
  },
  {
    displayName: t('common.base.createTime'),
    fieldName: 'createTime',
  },
]

// 自定义应用 产品
const CUSTOM_FORM_PORDUCT = [
  {
    displayName: t('report.common.horizontal'),
    fieldName: 'horizontal',
  },
  {
    displayName: t('common.label.productName'),
    fieldName: 'name'
  }, {
    displayName: t('common.base.column.productType'),
    fieldName: 'type'
  }, 
  {
    displayName: t('common.fields.productNo.displayName'),
    fieldName: 'serialNumber',
  }, {
    displayName: t('common.base.customer'),
    fieldName: 'customerName',
  },
  {
    displayName: t('common.base.createUser'),
    fieldName: 'createUserName',
  },
  {
    displayName: t('common.base.createTime'),
    fieldName: 'createTime',
  },
]
export {TABLENAME, PRODUCT, CUSTOMER, CUSTOMIZE, CUSTOMERCUSTOMIZE, CUSTOM_FORM_PAAS, CUSTOM_FORM_PORDUCT}